package com.dyw;

import com.dyw.ba01.SomeService;
import com.dyw.ba01.Student;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @auther Devil
 * @create 2022-01-07-13:29
 */
public class MyTest03 {
    @Test
    public void test03() {
        String config = "applicationContext04.xml";
        ApplicationContext ac = new ClassPathXmlApplicationContext(config);
        SomeService proxy = (SomeService) ac.getBean("someService");
        Student student = proxy.doFirst("阿坤", 20);//myAround
        System.out.println(student);

    }
}
